<%-- 
    Document   : form pesan barang
    Created on : Nov 21, 2013, 6:06:25 AM
    Author     : admin
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="bean.BarangGudang"%>
<%@page import="bean.Pemesanan"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body bgcolor="blue">
        <form action="PesanBarang">

            <table border="0" align="center">
                <th colspan="2"rowspan="1" width="1%" bgcolor="red" >
                    <font color="white"
                          <h1 align="center" style="color:#00CCFF"> Rekayasa Perangkat Lunak Berorientasi Proses </h1>
                        <h2 align="center" style="color:#00CCFF"> Sistem Informasi Gudang Alfamart </h2>
                        <h3 align="center" style="color:#00CCFF"> Kelompok ES CAMPUR </h3>
                    </font>

            </table>
             <br>
        <br>
        <br>
            <font style="font-size: 18px ; font-family: 'Jokerman'"><center>FORM PESAN BARANG</center></font><br>
            <table border="1" align="center" width="400" height="100">
                <tr>
                    <td width="45%">KODE PEMESANAN</td>
                    <td>
                     <input type="text" size="29" maxlength="10" name="kodepemesanan" ></td>
                </tr>

                <tr>
                    <td>JUMLAH BARANG</td>
                    <td>
                        <input type="text" size="29" maxlength="10" name="jumlahbarang"></td>
                </tr>
                <tr>
                    <td>ID BARANG</td>
                   <td>
                       <select name="idbarang">
                           <%
                           BarangGudang barangGudang = new BarangGudang();
                        ResultSet resultSet = barangGudang.tampilBarang();
                        while (resultSet.next()) {
                            out.print("<option value='" + resultSet.getString("idbarang") + "'>" + resultSet.getString("namabarang") + "</option>");
                        }
                           %>
                          
                       </select>

                </tr>
                <tr>
                    <td>PEMESAN</td>
                    <td><input type="text" size="29" maxlength="10" name="username"></td>
                </tr>
            </table>
            <br>
            <table border="0" align="center" width="220"> 
                <tr>
                    <td align="center">
                        <input type="submit" value="SIMPAN" name="simpan" style="font-size: 12px"></td>
                </tr>
            </table>
        </form>
        <table border="0" align="center" width="220"> 
            <tr>
                <td align="center" width="50%">
                    <form action="form_utama_toko.jsp">
                        <input type="submit" value="KEMBALI" name="kembali" style="font-size: 12px"></form></td>
            </tr>
        </table>
    </body>
</html>